-- GENERATED SPELL FOR [Duke Hydraxis] --


function spell0_13278(pUnit, Event) --6Create Aqual Quintessence,n/a--
pUnit:FullCastSpellOnTarget(21357,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13278', 675, 1)
end

function spell1_13278(pUnit, Event) --6Create Eternal Quintessence,n/a--
pUnit:FullCastSpellOnTarget(28439,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13278', 584, 1)
end

function Sorts_13278(pUnit, Event)
local choix_sorts_13278 = math.random(0, 1)
if choix_sorts_13278 == 0 then
pUnit:RegisterEvent('spell0_13278', 1, 1)
end
if choix_sorts_13278 == 1 then
pUnit:RegisterEvent('spell1_13278', 1, 1)
end
end

function mob13278_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_13278', math.random(1500, 3000), 1)
end

function mob13278_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13278_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13278_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(13278, 1, 'mob13278_Action')
RegisterUnitEvent(13278, 2, 'mob13278_Leave')
RegisterUnitEvent(13278, 3, 'mob13278_Kill')
RegisterUnitEvent(13278, 4, 'mob13278_Die')
